package com.yedou.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessException extends RuntimeException {
    private Integer code = 400;
    private String message;

    public BusinessException(String message) {
        this.message = message;
    }
}